package com.peanut.server.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.peanut.domain.bo.TabCarSeriesBO;
import com.peanut.dto.TabCarAgeDTO;
import com.peanut.mapper.TabSeriesMapper;
import com.peanut.server.TabSeriesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TabSeriesServiceipml implements TabSeriesService {
    @Resource
   private TabSeriesMapper tabSeriesMapper;
    @Override
    public List<TabCarSeriesBO> FindAllTabSeries() {
        List<TabCarSeriesBO> tabSeries = tabSeriesMapper.selectAlls();
        return tabSeries;
    }

    @Override
    public List<TabCarSeriesBO> findTabSeriesByName(String carSeriesName) {
        QueryWrapper<TabCarAgeDTO> queryWrapper=new QueryWrapper<>();
        queryWrapper.likeRight("car_series_name",carSeriesName);
        List<TabCarSeriesBO> list=tabSeriesMapper.selectAllLike(queryWrapper);

        return list;
    }

    @Override
    public void addTabSeries(TabCarAgeDTO tabSeriesBO) {

    }

    @Override
    public void deleteBathByIdsTabSeries(List<Long> list) {

    }

}
